home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part2 / 12062 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  6.5 KB

  1. Path: news.mindspring.com!chmood
  2. From: chmood@photobooks.atdc.gatech.edu (Charlie Moody)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: AmigaOS 4.x features
  5. Date: 12 Apr 1996 02:29:20 GMT
  6. Organization: Photobooks Inc
  7. Message-ID: <4kkf60$268e@mule1.mindspring.com>
  8. References: <4j7ein$a6v@B1FF.mindspring.com> <4jfm8i$b5n@B1FF.mindspring.com> <4jgc6q$a61@reuter.cse.ogi.edu> <4jkg5j$dva@B1FF.mindspring.com> <4jl6pr$knv@reuter.cse.ogi.edu>
  9. NNTP-Posting-Host: photobooks.atdc.gatech.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. On 31 Mar 1996 05:56:11 GMT, Tony Leneis wrote:
  13. : In article <4jkg5j$dva@B1FF.mindspring.com>,
  14. : Charlie Moody <chmood@photobooks.atdc.gatech.edu> wrote:
  15. : >On 29 Mar 1996 09:57:46 GMT, Tony Leneis wrote:
  16. : >
  17. : >It may be *as* powerful, but not moreso (and what the heck is 'UNIX 
  18. : >globbing'?), and certainly not as well thought out....
  19.  
  20. :     First, globbing is filename wildcarding.  Since some UNIX programs
  21. : do regexp patterns and others do glob patterns, you need to make the
  22. : distinction.  When I say that the Amiga pattern
  23. : matching is more powerful than globbing, I mean there are patterns that
  24. : Amiga pattern matching can express which globbing cannot.  For example:
  25.  
  26. : test#a       <- Matches 'test', 'testa', 'testaa', 'testaaa', etc.
  27.  
  28.   test*a       <- Matches 'test', 'testa', 'testaa', 'testaaa', etc.
  29.  
  30.  
  31. : test#(ab)c   <- Matches 'testc', 'testabc', 'testababc', 'testabababc', etc.
  32.  
  33. Ya got me on this one...but do you (does anyone) *really* use such 
  34. screwball naming conventions?
  35.  
  36.  
  37. : On the other hand, there are no UNIX globbing patterns which cannot be
  38. : expressed as an Amiga pattern.  Hence, Amiga patterns are more powerful.
  39.  
  40. It's afloor wax!  It's a breath mint!  It's BOTH!!!  As I said...
  41. : >Yes, I can get the same effect as in can under unix pattern-matching...all
  42. : >I have to do is use a completely different, much more cumbersome, and much 
  43. : >less intuitive (read: badly designed) method.
  44.  
  45. Please understand:  it's not my intention to insult my own machine 
  46. (currently a much-upgraded 2000, replacing my grey-bearded 1000, which is 
  47. now sunning itself in the back 40);  my comments were directed at making 
  48. the *CLI* more flexible/convenient.  File globbing or not, I have always 
  49. found the standard Amiga pattern-matching to be less simple, less 
  50. intuitive, and hence less useful when moving bunches of files around 
  51. (which I do...a lot....).
  52.  
  53. : Would you have preferred the standard UNIX regular expression
  54. : syntax?  Then you'd have to type '.*' instead of '#?', and you'd have to
  55. : remember to escape the '.' whenever you didn't want it to act as the Amiga
  56. : '?' metacharacter.  (Kind of a bummer if you're looking for '#?.c', or should
  57. : I say '.*\.c' as a UNIX regular expression.)
  58.  
  59. ???  I've never encountered such a thing as you seem to be describing, 
  60. from System III thru the current (Vr4?).  Certainly I've never had to 
  61. jump thru *these* hoops on a unix box.
  62.  
  63.  
  64. : As mentioned above, it is more flexible and more powerful, because anything
  65. : that can be expressed as a UNIX glob pattern can be expressed as an Amiga
  66. : pattern, and then some.
  67.  
  68. ...And I can use my trusty Western Electric telephone as a hammer in a 
  69. pinch, too (not to mention a boat anchor!);  that doesn't make it a good 
  70. hammer, nor does this 'dual function' make it more powerful than either 
  71. my Panasonic phone (which is a lousy hammer) or my Stanley hammer (which 
  72. is an even worse phone).
  73.  
  74. Or, to quote some old fart:  "It's not that the bear sings well:  it's 
  75. that the bear sings at all."  Or another:  "Use the right tool for the job."
  76.  
  77. : Just out of curiosity, whose wheel should they have
  78. : used instead of inventing their own?  As far as I know, there was no RFC or
  79. : other standard for file wildcarding when AmigaDOS was developed.  Which UNIX
  80. : shell should they have followed?
  81.  
  82. This is just a *bit* disingenuous, doncha think?  Do you believe standards
  83. grow on RFC's?  Taking what works and improving it is a time-honored way
  84. of making progress. 
  85.  
  86.  
  87. : >: For example, "dir sys:(a|b|c|e)#?".
  88. : >
  89. : >[additional references to documentation for more counter-intuitive,]
  90. : >[anti-logical methods deleted]
  91. : >
  92. : >        dir sys:[a-e]*
  93. : >
  94. : >Logical, simple, fast:  elegant.
  95.  
  96. :     Well, you can certainly do it with a current version of AmigaDOS.
  97. : So, what's the problem?  One minor nit - that should be 'dir sys:[a-ce]*'
  98. : if you want it to be the same as the 1.3 AmigaDOS pattern matching example
  99. : above.
  100.  
  101. You're right:  I've got 3.1 in, and there is a reasonable approximation 
  102. of this available to me now...so, no problem, obviously.  As for your 
  103. "minor nit" above:  I must have been dazzled by the crisp, clear, and 
  104. simple style of your example.  Pardon my oversight;  perhaps you could 
  105. supply me w/ page numbers for the manual wherein all this clarity is 
  106. explained.
  107.  
  108.  
  109. : >; The main problem,
  110. : >: if you want to call it a problem, is that it's different.  It also can be a
  111. : >: little more awkward to use for certain patterns, but it always can get the
  112. : >: job done.  
  113. : >
  114. : >The fact that the kludge can be worked around does nothing to redeem the 
  115. : >kludge.  It's still bad design with no significant benefit from making 
  116. : >the sacrifices, and it should be thrown overboard at the first opportunity.
  117.  
  118. : It's not a kludge, and there's nothing wrong with the design.  It is much
  119. : more useful than MS-DOS or UNIX globbing.  If I wanted that, I'd just run
  120. : Linux or CrossPC on my Amiga.
  121.  
  122. Much more useful FOR WHAT?  I say it's not more useful, in my experience, 
  123. for moving masses of files around from the command line, because in my 
  124. experience it's *not* more useful.  It may be just the thing for 
  125. complementing complex scripted functions, but I don't care, really.  If I 
  126. wanted to do enough studying to master that art, I'd tackle perl, or Python.
  127.  
  128. Granted, I was working on unix boxes long before I got my 1000, and I'm 
  129. *used* to doing certain things w/ the cli;  for me, it seems that the 
  130. unix command line was designed as a primary interface, and the Amiga cli 
  131. does not improve on it, and doesn't even equal it, in ease of common 
  132. use.  I've managed to avoid MooseDOS for most of my career, and I'm very 
  133. pleased about that;  and I don't *want* to run Linux or whatever:  I 
  134. *like* my machine!
  135.  
  136.  
  137. *sigh*  This wasn't meant to be a fight;  and as you say, the 
  138. functionality I asked for is substantially available to me now on my 
  139. Amiga, so this really is a moot point.
  140.  
  141.  
  142. : Throwing the Amiga pattern matching overboard would not only reduce the power
  143. : of AmigaDOS, it would also reduce the power of editors and other applicaitons
  144. : and utilities that allow you to do pattern matching.
  145.  
  146. I'll take your word for it....
  147.  
  148.  
  149.